@extends('homeLayouts.master')
@section('content')
    <div id="navv" class="navv_ziy">
        <div class="focus">
            <div class="focus-a">
                <div class="fouc-font fouc_font_ziy">
                    <a href="#">全部商品分类</a>
                </div>
            </div>
            <div class="subpage">

            </div>
            <!--左边导航结束-->
        </div>
    </div>
    <div class="beij_center">
        <div class="jiar_gouw_c_beij">
            <div class="msg">订单提交成功！请在30分钟内完成付款</div>
            <div>
                <p class="msg">打开微信,⬇️⬇️⬇️扫描付款️</p>
                {{--<img src="{{asset('images/qr.jpg')}}" alt="">--}}
                <img alt="模式二扫码支付" src="/wechat/example/qrcode.php?data=<?php echo urlencode($url2);?>"
                     style="width:150px;height:150px;"/>
            </div>
        </div>
    </div>
@endsection
@push('js')
    <script>
        setInterval(function () {
            $.ajax({
                url:'/order/checkStatus/'+{!! $order['id'] !!},
                dataType:'json',
                methods:'get',
                success:function (res) {
                    console.log(res);
                    if(res.valid==1){
                        location.href='/order/success'
                    }
                }
            })
        },5000)
    </script>
@endpush
